import networkRequest from '@/utils/network/XSRquest';
import IPConfig from '@/constants/IPConfig';

//查询banner
export function getBannerAll(params) {
    return networkRequest(`${IPConfig.projectIP}/leaderboard/enterprise/activity/banner/list`, params, 'post');
}
//修改banner
export function updateBanner(params) {
    return networkRequest(`${IPConfig.projectIP}/leaderboard/enterprise/activity/banner/update`, params, 'put');
}
//新增banner
export function addBanner(params) {
    return networkRequest(`${IPConfig.projectIP}/leaderboard/enterprise/activity/banner/save`, params, 'post');
}
//删除banner
export function deleteBanner(params) {
    return networkRequest(`${IPConfig.projectIP}/leaderboard/enterprise/activity/banner/delete`, params, 'delete');
}